package view.component.tip
{
	import core.Language;
	import core.StageProxy;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	
	import framework.core.UIWidget;
	import framework.view.components.Component;
	import framework.view.components.tip.ITip;
	
	import values.avatar.IPropertyProvider;
	import values.common.IAvatarBasicProperty;
	import values.common.IAvatarProperty;
	
	public class AvatarPropertyTip extends Component implements ITip
	{
		public function AvatarPropertyTip()
		{
			super();
		}
		
		override protected function get skinReference():String
		{
			return "swf.ui.AvatarPropertyFolatPanelSkin";
		}
		
		override public function initialize():void
		{
			super.initialize();
			
			skin.normalDefenseConstTF.text = Language.getText("@property_normalDefense_name") + ":";
			skin.skillDefenseConstTF.text = Language.getText("@property_skillDefense_name") + ":";
			skin.elementDefenseConstTF.text = Language.getText("@property_elementDefense_name") + ":";
			skin.normalDamageConstTF.text = Language.getText("@property_normalDamage_name") + ":";
			skin.skillDamageConstTF.text = Language.getText("@property_skillDamage_name") + ":";
			skin.elementDamageConstTF.text = Language.getText("@property_elementDamage_name") + ":";
			skin.moveCapabilityConstTF.text = Language.getText("@property_moveCapability_name") + ":";
			skin.hitRateConstTF.text = Language.getText("@property_hitRate_name") + ":";
			skin.dodgeRateConstTF.text = Language.getText("@property_dodgeRate_name") + ":";
			skin.penetrateRateConstTF.text = Language.getText("@property_penetrateRate_name") + ":";
			skin.resistRateConstTF.text = Language.getText("@property_resistRate_name") + ":";
			skin.enforceRateConstTF.text = Language.getText("@property_enforceRate_name") + ":";
			skin.blockRateConstTF.text = Language.getText("@property_blockRate_name") + ":";
			skin.toughnessConstTF.text = Language.getText("@property_toughness_name") + ":";
			skin.critRateConstTF.text = Language.getText("@property_critRate_name") + ":";
			skin.defenseRateConstTF.text = Language.getText("@property_defenseRate_name") + ":";
			skin.suppressRateConstTF.text = Language.getText("@property_suppressRate_name") + ":";
			skin.actRateConstTF.text = Language.getText("@property_actRate_name") + ":";
			skin.distanceConstTF.text = Language.getText("@property_attact_distance_name") + ":";
		}
		
		public function get data():*
		{
			return null;
		}
		
		public function set data(value:*):void
		{
			skin.normalDefenseTF.text = value.normalDefense;
			skin.skillDefenseTF.text = value.skillDefense;
			skin.elementDefenseTF.text = value.elementDefense;
			skin.normalDamageTF.text = value.normalDamage;
			skin.skillDamageTF.text = value.skillDamage;
			skin.elementDamageTF.text = value.elementDamage;
			skin.moveCapabilityTF.text = value.moveCapability;
			skin.hitRateTF.text = value.hitRate;
			skin.dodgeRateTF.text = value.dodgeRate;
			skin.penetrateRateTF.text = value.penetrateRate;
			skin.resistRateTF.text = value.resistRate;
			skin.enforceRateTF.text = value.enforceRate;
			skin.blockRateTF.text = value.blockRate;
			skin.toughnessTF.text = value.toughness;
			skin.critRateTF.text = value.critRate;
			skin.defenseRateTF.text = value.defenseRate;
			skin.suppressRateTF.text = value.suppressRate;
			skin.actRateTF.text = value.actRate;
			skin.distanceTF.text = value.distance;
		}
	}
}